package io.renren.common.contant;

public enum ConstantEnum {


    /*
    * 文件类型
    * */
    COMPANY_PROFILE_001("COMPANY_PROFILE_001", "公司详情轮播图"),


    /*
    *
    * */
    COMPANY_PROFILE_002("COMPANY_PROFILE_002", "公司详情富文本内图片"),


    /*
    *
    * */
    ORGANIZATION_101("ORGANIZATION_101","组织机构图片"),

    /*
    *
    * */
    HONOR_QUALIFICATION_201("HONOR_QUALIFICATION_201","荣誉资质"),


    /*
    *
    * */
    NEWS_COMPANY_301("NEWS_COMPANY_301","公司新闻"),

    /*
    *
    * */
    NEWS_INDUSTRY_301("NEWS_INDUSTRY_302","行业新闻"),


    /*
    *
    * */
    PRODUCT_PIC_401("PRODUCT_PIC_401","产品首页图片"),

    /*
    *
    * */
    PRODUCT_PIC_402("PRODUCT_PIC_402","产品轮播图片"),

    /*
    *
    * */
    PRODUCT_FILE_401("PRODUCT_File_401","产品文件"),

    /*
    *
    * */
    SERVE_SUPPORT_501("SERVE_SUPPORT_501","服务支持网络"),


    /*
    *
    * */
    SERVE_SUPPORT_502("SERVE_SUPPORT_502","服务支持文件"),


    /*
    *
    * */
    PROJECT_TITLE_PIC_601("PROJECT_TITLE_PIC_601","项目标题图片"),


    /*
    *
    * */
    PROJECT_CONTENT_PIC_602("PROJECT_CONTENT_PIC_602","项目内容图片"),

    /*
    *
    * */
    PROJECT_COOPERATION_PIC_701("PROJECT_COOPERATION_PIC_701","项目合作标题图片"),

    /*
    *
    * */
    PROJECT_COOPERATION_PIC_702("PROJECT_COOPERATION_PIC_702","产品代理标题图片"),



    /*
    *
    * */
    PRODUCTION_COURSE_PIC_801("PRODUCTION_COURSE_PIC_801","生产过程标题图片"),

    /*
    *
    * */
    PRODUCTION_COURSE_PIC_802("PRODUCTION_COURSE_PIC_802","生产过程内容图片"),


    /*
    *
    * */
    TEST_COURSE_PIC_901("TEST_COURSE_PIC_901","试验过程标题图片"),

    /*
    *
    * */
    TEST_COURSE_PIC_902("TEST_COURSE_PIC_902","试验过程内容图片"),



    /*
    *
    * */
    FORWARDING_COURSE_PIC_1001("FORWARDING_COURSE_PIC_1001","发运过程标题图片"),

    /*
    *
    * */
    FORWARDING_COURSE_PIC_1002("FORWARDING_COURSE_PIC_1002","发运过程内容图片"),


    /*
    *
    * */
    INSTALL_COURSE_PIC_1101("INSTALL_COURSE_PIC_1101","安装过程标题图片"),

    /*
    *
    * */
    INSTALL_COURSE_PIC_1102("INSTALL_COURSE_PIC_1102","安装过程内容图片"),


    /*
    *
    * */
    INSTALL_SERVE_PIC_1201("INSTALL_SERVE_PIC_1201","安装服务标题图片"),

    /*
    *
    * */
    INSTALL_SERVE_PIC_1202("INSTALL_SERVE_PIC_1202","安装服务内容图片"),


    /*
    *
    * */
    SALE_AFTER_SERVE_PIC_1301("SALE_AFTER_SERVE_PIC_1301","售后服务标题图片"),

    /*
    *
    * */
    SALE_AFTER_SERVE_PIC_1302("SALE_AFTER_SERVE_PIC_1302","售后服务内容图片"),


    /*
    *
    * */
    FACTORY_ADDRESS_PIC_1401("FACTORY_ADDRESS_PIC_1401","工厂地址"),

    /*
    *
    * */
    BUSINESS_ADDRESS_PIC_1501("BUSINESS_ADDRESS_PIC_1501","事业部地址"),


    /*
    *
    * */
    GROUP_SHARE_PIC_1601("GROUP_SHARE_PIC_1601","集团共享图片"),




    /*
   *
   * */
    MENU_PIC_1701("MENU_PIC_1701","菜单图片"),

    /*
   *
   * */
    NEWS_CONTENT_PIC_1801("NEWS_CONTENT_PIC_1801","新闻内容图片"),

    /*
   *
   * */
    NEWS_CONTENT_PIC_1803("NEWS_CONTENT_PIC_1803","新闻内容图片英文"),


    /*
       *
       * */
    NEWS_TITLE_PIC_1802("NEWS_TITLE_PIC_1802","新闻标题图片"),

    /*
       *
       * */
    NEWS_TITLE_PIC_1804("NEWS_TITLE_PIC_1804","新闻标题图片英文"),


    /*
   *
   * */
    PRODUCT_PIC_1901("PRODUCT_PIC_1901","产品分类图片"),



    /*
    *
    * */
    DOWNLOAD_FILE("DOWNLOAD_FILE","供下载文件"),

    /*
    *
    * */
    DOWNLOAD_FILE_ENGLISH("DOWNLOAD_FILE_ENGLISH","供下载文件英文"),


    /*
    *
    * */
    PRODUCT_DOWNLOAD_FILE("PRODUCT_DOWNLOAD_FILE","产品下载文件"),


    /*
    *
    * */
    PRODUCT_DOWNLOAD_FILE_ENGLISH("PRODUCT_DOWNLOAD_FILE_ENGLISH","产品下载文件英文"),


    /*
    *
    * */
    COMPANY_HISTORY_001("COMPANY_HISTORY_001","公司简介中文图片"),

    /*
        *
        * */
    COMPANY_HISTORY_ENGLISH_001("COMPANY_HISTORY_ENGLISH_001","公司简介英文图片"),


    ;





    /**
     * 返回码
     */
    private String index;

    /**
     * 返回信息
     */
    private String value;

    /**
     * @param index
     * @param value
     */
    ConstantEnum(String index, String value) {
        this.index = index;
        this.value = value;
    }

    /**
     * 获取错误码
     *
     * @return
     */
    public String getIndex() {
        return index;
    }

    /**
     * 获取错误消息描述
     *
     * @return
     */
    public String getValue() {
        return value;
    }

    // 普通方法
    public static ConstantEnum getValueByIndex(String index) {
        for (ConstantEnum ce : ConstantEnum.values()) {
            if (index.equals(ce.getIndex())) {
                return ce;
            }
        }
        return null;
    }
}
